#ifndef ANALOG_TEMP_SENSOR_H
#define ANALOG_TEMP_SENSOR_H

#include "types.h"
#include "stm32f10x.h"
#include "SensorChannels.h"

// extern void *OpenAnalogTemperatureSensor(int AdcChannel, GPIO_TypeDef *PwPort, uint16_t PwPin, int readPeriodInMs);
// extern void CloseAnalogTemperatureSensor(void *handle);
// extern int SetAnalogTemperatureSensorReadPeriodInMs(void *handle, int MilliSecond);
// extern int ReadAnalogTemperatureSensor(void *_handle, uint16_t *V1, uint16_t *V2);

extern int OpenAnalogTemperatureSensor(int channel, const SensorChannelHw_t *Hw, int readPeriodInMs);
extern void CloseAnalogTemperatureSensor(int channel, const SensorChannelHw_t *Hw);
extern int SetAnalogTemperatureSensorReadPeriodInMs(int channel, int MilliSecond);
extern int ReadAnalogTemperatureSensor(int channel, uint16_t *V1, uint16_t *V2);

#endif // ifndef ANALOG_TEMP_SENSOR_H
